package com.uum.admin.mapper;

import com.uum.admin.pojo.entity.SysPermissionRole;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Tsang_yc
 * @since 2022-01-19
 */
public interface SysPermissionRoleMapper extends BaseMapper<SysPermissionRole> {


    /**
     * 根据菜单ID和角色ID获取权限ID集合
     *
     * @param menuId
     * @param roleId
     * @return
     */
    List<Long> listPermIds(Long menuId, Long roleId);
}
